#ifndef CHATWIDGET_H
#define CHATWIDGET_H

#include <QWidget>
#include <QString>
#include "contentcontainerwidget.h"

struct QLineEdit;
struct QPushButton;

namespace Kajim
{
struct HistoryWidget;

class ChatWidget : public ::Kajim::Common::ContentContainerWidget
{
    Q_OBJECT

public:
    ChatWidget(const QString & peerJid, int accountHandler, QWidget * parent = 0);
    ~ChatWidget();
    QString title();

public slots:
    void receivePeerMessage(const QString & body, const QString & subject);

signals:
    void sendMessage(const QString & peerJid, const QString & body, const QString &);

protected slots:
    void textLineActivated(const QString & text);
    void reloadAccountData();

private:
    struct Private;
    Private * d;

};

}

#endif
